package day1;

/**
 * @author oldliu
 * @since 1.0
 */
public class SchoolTest {
    public static void main(String[] args) {
        School d=new School();
        d.name="合肥科海培训中心";//给属性赋值
        d.address="工大东边";
        d.classRooms=2;
        d.labs=10;
        d.introduceSelf();//调用方法
        //String n=d.name;
        d.classRooms=1;
        d.introduceSelf();
        // System.out.println(d);//！！！！不行
        System.out.println("地址在：");
        System.out.println(d.address);//=左边，设置， 直接用，读取
    }
}
